package com.zretc.minio.config;

import feign.codec.Decoder;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class FeignClientConfig {
    @Autowired
     private ObjectFactory<HttpMessageConverters> messageConverters;

    
    @Bean
    public Encoder feignFormEncoder() {
        return new SpringFormEncoder();
    }

}
